<template>
    <div class="loading">
        <img src="../assets/icons/loading.gif" />
      </div>
</template>>
<style scoped>
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  z-index: 1000; /* 确保它在页面内容之上 */
}

/* 当页面内容加载完毕，隐藏loading元素 */
.loading.hidden {
  display: none;
}
</style>
